<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<!--    <ul class="nav nav-tabs">-->
<!--        <li><a href="{:url('order/index')}">订单列表</a></li>-->
<!--        <li><a href="{:url('order/receipt')}">包裹列表</a></li>-->
<!--        <li class="active"><a href="{:url('order/batch_express')}">批量发货</a></li>-->
<!--    </ul>-->
    <form class="well form-inline margin-top-20" method="get" action="{:url('order/eprint?step=1')}">
        快递公司：
        <select name="store_id" id="" class="form-control">
            <option value="">请选择</option>
            <volist name="storage" id="vo">
                <option value="{$vo.id}" {:input('store_id') == $vo.id ? 'selected' : ''}>{$vo.store_name}</option>
            </volist>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索">
<!--        <a class="btn btn-info" href="javascript:openIframeLayer('doc','批量发货说明', {area:['90%','90%']})">说明</a>-->
    </form>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" enctype="multipart/form-data" action="{:url('order/eprint?step=2')}">
        <div class="row">
            <div class="col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('确认打单')}</button>
                <input type="text" name="port_name" placeholder="打印机名称" class="form-control">
            </div>
            <table class="table table-hover table-bordered table-striped table-condensed">
                <thead>
                <tr>
                    <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></th>
                    <th>包裹编号</th>
                    <th>订单号</th>
                    <th>收件信息</th>
                    <th style="width: 20%">地址</th>
                    <th>订单状态</th>
                    <th>快递公司</th>
                    <th>快递编号</th>
                    <th>仓库</th>
                    <th>{:lang('ACTIONS')}</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="vo">
                    <tr>
                        <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                        <td>{$vo.self_order_no}</td>
                        <td>{$vo['obtain_order_no']}</td>
                        <td>收货人：{$vo['name']}<br>手机号：{$vo.tel}</td>
                        <td>{$vo.area_info}</td>
                        <td>{$status[$vo['order_status']]}</td>
                        <td>{$vo.delivery_company}</td>
                        <td>{$vo.delivery_no}</td>
                        <td>{$vo.storage.store_name}</td>
                        <td>
                            <a class="btn btn-sm btn-info" href="javascript:openIframeLayer('/admin/order/detail?id={$vo.id}', '详情', {area:['60%','60%'], move: true})">查看</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
        </div>

    </form>
    <script src="__STATIC__/js/admin.js"></script>
</div>
</body>
</html>